home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000266_simon@lia.di.epfl.ch_Mon Feb 7 13:30:23 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  5KB

  1. Received: from liasun6.epfl.ch by cs.umb.edu with SMTP id AA07603
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Mon, 7 Feb 1994 13:30:23 -0500
  3. Received: by liasun6.epfl.ch (Smail3.1.28.1 #58)
  4.     id m0pTaiz-0002P8C; Mon, 7 Feb 94 19:30 MET
  5. Message-Id: <m0pTaiz-0002P8C@liasun6.epfl.ch>
  6. Date: Mon, 7 Feb 94 19:30 MET
  7. From: simon@lia.di.epfl.ch (Simon Leinen)
  8. To: tex-k@cs.umb.edu
  9. Subject: web2c 6.1 - --srcdir still broken - patch1
  10.  
  11. As always, I am trying to compile web2c on multiple architectures with
  12. the sources on a big and slow NFS server.  I don't want to use lndir
  13. and have only read-only access to the sources from some of the
  14. machines I am trying to compile on.  Let's assume $t is a local
  15. directory (such as /tmp) and $ts is the directory where I have put the
  16. sources (on the slow and read-only NFS server).  The first try gives:
  17.  
  18. simon@liasun6[web2c-6.1]$ cd $t; grm -rf $p; p=web2c-6.1; mkdir $p; cd $p; $ts/$p/configure --verbose --srcdir=$ts/$p
  19. checking for tex to derive installation directory prefix
  20.         chose installation directory prefix /logiciels/public/TeX
  21. Running configure in dvipsk...
  22. configure: Can not find sources in `/logiciels/distribution/public/TeX/src/VRAIE_SOURCE/web2c-6.1'.
  23. Running configure in web2c...
  24. configure: Can not find sources in `/logiciels/distribution/public/TeX/src/VRAIE_SOURCE/web2c-6.1'.
  25. Running configure in xdvik...
  26. configure: Can not find sources in `/logiciels/distribution/public/TeX/src/VRAIE_SOURCE/web2c-6.1'.
  27. Using dvipsk/config.status to configure kpathsea...
  28. awk: can't open dvipsk/config.status
  29. creating config.status
  30. creating Makefile
  31. simon@liasun6[web2c-6.1]$ 
  32.  
  33. So I leave out the --srcdir argument because it obviously confuses the
  34. sub-configures.  This does create some Makefiles but fails when trying
  35. to create kpathsea/config.status by copying from dvipsk, because the
  36. subdirectory kpathsea doesn't exist yet.
  37.  
  38. When I rerun configure after fixing this (see patch below),
  39. kpathsea/Makefile becomes identical to dvipsk/Makefile.  The reason is
  40. that of course the copied-over config.status defines the "srcdir"
  41. variable as ".../dvipsk".
  42.  
  43. If you ask me, this whole idea of copying the (awk-mangled)
  44. config.status file from a different subdirectory (just to avoid having
  45. to run configure four times instead of just three) makes things much
  46. too complicated.  Anyway.  Since the top-level configure already has
  47. to mangle $first_program/config.status with awk in order to fix it for
  48. kpathsea, I took the liberty to add another sed command that replaces
  49. all occurrences of "/$first_program" by "/kpathsea".
  50.  
  51. Note that the patches below are *not* yet sufficient to compile web2c
  52. in a fresh directory from read-only sources.  There are still problems
  53. with the Makefile.in's in subdirectories.  I'll post patches for these
  54. soon.
  55. -- 
  56. Simon.
  57.  
  58. *** configure    1994/02/07 16:23:18    1.1
  59. --- configure    1994/02/07 17:33:40
  60. ***************
  61. *** 205,209 ****
  62.   
  63.               { if (!multiline_config_files) print }
  64. ! ' $first_program/config.status >conftest.stat
  65.   if cmp -s conftest.stat kpathsea/config.status 2>/dev/null; then
  66.     # The file exists and we would not be changing it.
  67. --- 205,210 ----
  68.   
  69.               { if (!multiline_config_files) print }
  70. ! ' $first_program/config.status \
  71. ! | sed -e "s@/$first_program@/kpathsea@g" >conftest.stat
  72.   if cmp -s conftest.stat kpathsea/config.status 2>/dev/null; then
  73.     # The file exists and we would not be changing it.
  74. ***************
  75. *** 211,214 ****
  76. --- 212,216 ----
  77.   else
  78.     rm -f kpathsea/config.status
  79. +   test -d kpathsea || mkdir kpathsea
  80.     cp conftest.stat kpathsea/config.status
  81.     (cd kpathsea; $CONFIG_SHELL config.status)
  82. *** configure.in    1994/02/07 16:23:11    1.1
  83. --- configure.in    1994/02/07 17:33:35
  84. ***************
  85. *** 77,81 ****
  86.   
  87.               { if (!multiline_config_files) print }
  88. ! ' $first_program/config.status >conftest.stat
  89.   if cmp -s conftest.stat kpathsea/config.status 2>/dev/null; then
  90.     # The file exists and we would not be changing it.
  91. --- 77,82 ----
  92.   
  93.               { if (!multiline_config_files) print }
  94. ! ' $first_program/config.status \
  95. ! | sed -e "s@/$first_program@/kpathsea@g" >conftest.stat
  96.   if cmp -s conftest.stat kpathsea/config.status 2>/dev/null; then
  97.     # The file exists and we would not be changing it.
  98. ***************
  99. *** 83,86 ****
  100. --- 84,88 ----
  101.   else
  102.     rm -f kpathsea/config.status
  103. +   test -d kpathsea || mkdir kpathsea
  104.     cp conftest.stat kpathsea/config.status
  105.     (cd kpathsea; $CONFIG_SHELL config.status)